home *** CD-ROM | disk | FTP | other *** search
- head 1.3;
- branch ;
- access ;
- symbols ;
- locks ;
- comment @ * @;
-
-
- 1.3
- date 91.03.02.14.12.03; author gtoal; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 91.03.02.13.59.30; author gtoal; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 91.03.02.13.56.17; author gtoal; state Exp;
- branches ;
- next ;
-
-
- desc
- @Initial release
- @
-
-
- 1.3
- log
- @Re-doing a lost change
- @
- text
- @#include <stdio.h>
-
- int
- main (void)
- {
- char s[1024];
- int d, i, l;
- FILE *f = fopen ("h.linkcount", "r+");
-
- l = fread (s, 1, 1024, f);
- for (i = 0; s[i] != '/'; i++);
- sscanf (&s[++i], "%d", &d);
- sprintf (&s[i], "%d (\"__DATE__\")\"\n", ++d);
- while (s[++i]);
- fseek (f, 0, SEEK_SET);
- fwrite (s, 1, i, f);
- fclose(f);
- return (0);
- }
- @
-
-
- 1.2
- log
- @IAY's upgrade
- @
- text
- @d17 1
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @a16 1
- fclose(f);
- @
-